{extend name="public/wap_base" /}
{block name="css"}
<link href="/static/css/wap/index.css?R=1111122" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper/swiper-bundle.min.css" />
{/block}
{block name="js"}

{/block}

{block name="title"}首页{/block}

{block name="main"}

<!-- 轮播图 -->
<div class="swiper-container banner-swiper">
    <div class="swiper-wrapper">
        <div class="swiper-slide"><img src="/static/images/banner01.jpg" alt="banner1" /></div>
    </div>
    <div class="swiper-pagination"></div>
</div>


<!-- 线上看展 -->
<div class="block-white" style="margin-top: 0px">
    <div class="section-title">
        <img src="/static/images/wap/tit01.png" alt="线上看展"/>
        <p class="title-text">全方位展示企业风采</p>
    </div>
    <!-- 宫格轮播 -->
    <div class="swiper-container grid-swiper index-grid" style="overflow: hidden">
        <div class="swiper-wrapper">
            <!-- 第一页 8项 -->
            <div class="swiper-slide">
                <div class="grid-menu">
                    {volist name="industry" id="item" offset="0" length='8'}
                    <a class="menu-item" href="/company/{$item.id}"><img src="{$item.image}" /><div>{$item.catname}</div></a>
                    {/volist}
                </div>
            </div>
            <!-- 第二页 8项 -->
            <div class="swiper-slide">
                <div class="grid-menu">
                    {volist name="industry" id="item" offset="8" length='16'}
                    <a class="menu-item" href="/company/{$item.id}"><img src="{$item.image}" /><div>{$item.catname}</div></a>
                    {/volist}
                </div>
            </div>
        </div>
        <div class="swiper-pagination"></div>
    </div>
</div>

<!-- 优秀企业会展 -->
<div class="block-gray">
    <div class="section-title" style="background: none">
        <img src="/static/images/wap/tit02.png" alt="优秀企业汇展"/>
        <p class="title-text">精品荟萃 共展卓越</p>
    </div>

    <div class="enterprise-list">
        {volist name="recommend" id="item"}
        <a class="enterprise-item" href="/cdetail/{$item.user_id}" target="_blank">
            <img src="{$item.avatar}" alt="{$item.nickname}"/>
            <p class="enterprise-title">{$item.nickname}</p>
        </a>
        {/volist}
    </div>
</div>


<!-- 资讯列表 -->
<div class="block-white">
    <!-- 广告位 -->
    <div class="ad-container">
        <div class="ggw-item">
            <a href="/brand">
                <img src="/static/images/wap/banner02.jpg" alt="广告位" />
            </a>
<!--            <a class="more more11">查看详情<img src="/static/images/index-more01.png"></a>-->
        </div>
        <div class="ggw-item">
            <a href="/industry">
                <img src="/static/images/wap/banner03.jpg" alt="广告位" />
            </a>
<!--            <a class="more more11">查看详情<img src="/static/images/index-more01.png"></a>-->
        </div>
    </div>

    <!-- 资讯标题区域 -->
    <div class="section-title" style="padding-top: 20px">
        <h2 class="title-cn">新闻资讯</h2>
        <p class="title-en">News Information</p>
    </div>

    <!-- 新闻资讯 -->
    <div class="news-list" id="newsList">
        <!-- 假设以下为循环输出 -->
        {volist name="new" id="item"}
        <div class="news-info">
            <div class="news-text">
                <div class="news-title">
                    <a href="/ndetail/{$item.id}" title="{$item.title}">{$item.title}</a>
                </div>
                <div class="news-time">{$item.show_time|date='Y-m-d' }</div>
            </div>
            <a href="/ndetail/{$item.id}" class="news-img-link">
                <img src="{$item.thumb}" alt="{$item.title}" />
            </a>
        </div>
         {/volist}
        <!-- 查看更多按钮 -->
        <div id="loadMoreDiv" class="load-more">点击查看更多</div>
    </div>




</div>


<script src="https://cdn.jsdelivr.net/npm/swiper/swiper-bundle.min.js"></script>
<script src="/static/js/wap/index.js?R=13332"></script>
{/block}